package st.business.tepth.business.history.detail;

import io.reactivex.disposables.Disposable;
import st.business.tepth.base.OnDataConvertListener;
import st.business.tepth.business.bean.HistoryDetailBean;
import st.shadow.library.core.base.mvp.BaseModel;
import st.shadow.library.core.base.mvp.BasePresenter;
import st.shadow.library.core.base.mvp.BaseView;

/**
 * Author: shadow
 * Email:  1025431817@qq.com
 * Time:   2019-03-04 10:35
 */

public interface HistoryDetailContract {
    interface View extends BaseView {
        void showHistoryData(HistoryDetailBean historyDetailBean);
    }

    interface Model extends BaseModel {
        Disposable getHistoryData(String token, int id,
                                  OnDataConvertListener<HistoryDetailBean> listener);
    }

    abstract class Presenter extends BasePresenter<View> {
        abstract void getHistoryData(String token, int id);
    }
}
